package com.gitee.yanfanvip.model;

public enum FrameEnum {
	PING(0),
	PUT(1),
	PUTALL(2),
	REMOVE(3),
	CLEAR(4),
	PULL_MESSAGE_COMPLETE(5),//拉取失败消息完成
	SYNC_START(11),
	SYNC_COMPLETE(12);
	
	private final int type;
	private FrameEnum(int type) {
		this.type = type;
	}
	public int getType() {
		return type;
	}
	
	public static FrameEnum get(int type) {
		for (FrameEnum e : FrameEnum.values()) {
			if(e.type == type){
				return e;
			}
		}
		return null;
	}
}
